package com.wu.mapper;

import com.wu.App;
import com.wu.entity.Student;
import com.wu.entity.Teacher;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

public class TeacherST {
    @Test
    public void queryBlogForeach(){
        SqlSession session = App.getSession();
       TeacherMapper mapper = session.getMapper(TeacherMapper.class);
        Teacher teacher = mapper.getTeacher(1);
        System.out.println(teacher);
    }
}
